#!/usr/bin/python
import sys
def main(no,w=None):
	l = range(1,no+1)
	if w:
		print " ".join(map(lambda x:"r-"+str(x)+"-x" + " w-"+str(x) + "-x-1 c-" + str(x),l)) + " " + " ".join(map(lambda x:"c-"+str(x),l))
	else:
		print " ".join(map(lambda x:"r-"+str(x)+"-x",l)) + " " + " ".join(map(lambda x:"c-"+str(x),l))
		
if __name__ == "__main__":
	if(len(sys.argv) == 3):
		main(int(sys.argv[1]),sys.argv[2])
	else:
		main(int(sys.argv[1]))

